package com.example.demoweb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Date 2021/6/22 10:18
 * @Created by wangle
 * @Description
 */
@Controller
public class viewrestcontroller {

    @GetMapping("/guigu")

    public String getGuigu(Model model){

        model.addAttribute("msg","你好啊！");
        model.addAttribute("link","http://www.baidu.com");
        return  "success";
    }
}
